<style>
    .div{margin-top:100px;margin-left: 500px;}
</style>
<form method="post" action="/auth/login" class="div">
    {!! csrf_field() !!}
    <div>
        用户名：
        <input type="text" name="name" value="{{ old('name') }}">
    </div>

    <div>
        密　码：
        <input type="password" name="password" id="password">
    </div>

    <div>
        验证码： <input type="text" name="captcha" class="form-control" style="width: 100px;"><br>
        　　　　 <a onclick="javascript:re_captcha();" ><img src="{{ URL('kit/captcha/1') }}"  alt="验证码" title="刷新图片" width="100" height="40" id="c2c98f0de5a04167a9e427d883690ff6" border="0"></a>
    </div>

    <div>
        {{--　　　　<input type="checkbox" name="remember"> 记住我--}}
    </div>

    <div>
        　　　　<button type="submit">登录</button>
    </div>
</form>
<script>
    function re_captcha() {
        $url = "{{ URL('kit/captcha') }}";
        $url = $url + "/" + Math.random();
        document.getElementById('c2c98f0de5a04167a9e427d883690ff6').src=$url;
    }
</script>

